from django.contrib import admin
from web.models import Category, Topic


class CatgoryAdmin(admin.ModelAdmin):
    list_display = ['id', 'name', 'type', 'is_nav', 'is_index', 'href', 'orders', 'create_date']


class TopicAdmin(admin.ModelAdmin):
    list_display = ['id', 'title', 'create_date', 'release_date', 'author']


# Register your models here.
admin.site.register(Category, CatgoryAdmin)
admin.site.register(Topic, TopicAdmin)
